﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo1
{
    class Person
    {
        public int id;
        public string name;
        public char sex;
        public string cardId;
        public string tel;

        public int Id
        {
            get { return this.id; }
            set { this.id = value; }
        }
        public string Name
        {
            get { return this.name; }
            set { this.name = value; }
        }
        public char Sex
        {
            get { return this.sex; }
            set { this.sex = value; }
        }
        public string CardId
        {
            get { return this.cardId; }
            set { this.cardId = value; }
        }
        public string Tel
        {
            get { return this.tel; }
            set { this.tel = value; }
        }

        public Person()
        {

        }

        public Person(int id, string name, char sex, string cardId, string tel)
        {
            this.id = id;
            this.name = name;
            this.sex = sex;
            this.cardId = cardId;
            this.tel = tel;
        }

        public void Test()
        {
            Console.Write("定义编号{0}、姓名{1}、性别{2}、身份证号{3}、联系方式{4}、", this.Id, this.name, this.sex, this.cardId, this.tel);

        }
    }
}
